console.log(new Date().toLocaleString());
console.log(new Date().toString());
console.log(new Date().valueOf());
console.log(new Date(2020,0,1) < new Date(2021,0,1));

let obj1 = {
    name:'alice',
    valueOf:function(){
        return '10'
    }
}
let obj2 = {
    name:'smith',
    valueOf:function(){
        return 9;
    }
}
console.log(obj1 > obj2);